WPStaging\Backup\Service\Archiver B

Total Complexity 94
Dependencies 25
Dependents 7
Total lines 761
Lines of code 382
Logical lines of code 265
Comment lines 191
Methods 31
Properties 13

Methods 31

Method Rating Maintainability Complexity Lines of code
addIndexPartSize()
A
43 14 49
addFileIndex()
A
40 13 57
appendFileToBackup()
A
43 10 46
addIndex()
A
47 9 35
renameBackup()
S
60 4 13
updateIndexInformationForAlreadyAddedIndex()
S
52 3 22
generateBackupMetadata()
S
56 3 19
createArchiveFile()
S
69 4 6
initiateDtoByFilePath()
S
66 4 8
getMaxPhpTimeLimitAllowed()
S
62 3 11
maybeIncrementFileAppendTimeLimit()
S
63 3 11
appendToArchiveFile()
S
64 2 11
getFinalBackupParentDirectory()
S
71 2 6
getDelayForRetry()
S
68 2 7
getFinalPath()
S
68 2 7
__construct()
S
62 1 12
writeFileHeader()
S
72 1 5
setFileAppendTimeLimit()
S
77 1 4
setBackupMetadataCategoryInfo()
S
81 1 3
incrementFilesCount()
S
80 1 3
setIndexPositionCreated()
S
81 1 3
isIndexPositionCreated()
S
81 1 3
getDestinationPath()
S
65 1 10
getTempBackup()
S
82 1 3
resetFileAppendTimeLimitAndRetries()
S
74 1 5
getTempBackupIndex()
S
82 1 3
getBytesWrittenInThisRequest()
S
82 1 3
getDto()
S
82 1 3
setIsLocalBackup()
S
81 1 3
setupTmpBackupFile()
S
68 1 7
isBackupFormatV1()
S
76 1 4